﻿using System;
using System.Collections.Generic;
using System.Web;
using DAO;

namespace BUS
{
    public class ThanhToanBUS
    {
        private ThanhToanDAO _dDAO;

        public ThanhToanBUS()
        {
            _dDAO = new ThanhToanDAO();
        }

        public bool Them(THANHTOAN _thanhtoan)
        {
            return _dDAO.Them(_thanhtoan); 
        }
        public bool Xoa(THANHTOAN _thanhtoan)
        {
            return _dDAO.Xoa(_thanhtoan);
        }
        public bool Sua(THANHTOAN _thanhtoan)
        {
            return _dDAO.Sua(_thanhtoan);
        }
        public THANHTOAN TimTen(String _name)
        {
            return _dDAO.TimTen(_name);
        }
        public THANHTOAN ChiTiet(String _id)
        {
            return _dDAO.LayID(_id);
        }
        public List<THANHTOAN>  LietKe()
        {
            return _dDAO.LietKe();
        }     
    }
}